package com.study.mapper;

import com.study.entity.OrdersDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author ytj
 * @date 2024/5/6
 */
@Repository
public interface OrdersMapper {

    OrdersDO selectById(@Param("id")Integer id);

    List<OrdersDO> selectListByUserId(@Param("userId")Integer userId);

    void insert(OrdersDO ordersDO);
}
